s = input("输入字符串：")

d = dict()

for c in s:
    if c in d.keys():
        d[c] = d[c] + 1
    else:
        d[c] = 1


for ch in d.keys():
    if d[ch] == 4:
        print(ch)
